package StudentSystem;

/**
 * Student类是封装了一些学生的基本信息
 * 分别是学号，姓名，班级，数学成绩，英语成绩，计算机成绩，平均成绩
 */

public class Student {
    private String id;
    private String name;
    private String classroom;
    private double Math;
    private double English;
    private double Computer;
    private double average;

    public Student() {
    }

    public Student(String id, String name, String classroom, int Math, int English, int Computer) {
        this.id = id;
        this.name = name;
        this.classroom = classroom;
        this.Math = Math;
        this.English = English;
        this.Computer = Computer;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getClassroom() {
        return classroom;
    }

    public void setClassroom(String classroom) {
        this.classroom = classroom;
    }

    public double getMath() {
        return Math;
    }

    public void setMath(double Math) {
        this.Math = Math;
    }

    public double getEnglish() {
        return English;
    }

    public void setEnglish(double English) {
        this.English = English;
    }

    public double getComputer() {
        return Computer;
    }

    public void setComputer(double Computer) {
        this.Computer = Computer;
    }

    public double getAverage() {
        return average;
    }

    public void setAverage(double average) {
        this.average = average;
    }
}